
<div ng-if="pagedata.showtostoretime" class="popup">
		<style>
		.jyui_cell_col .red {
			color: red;
		}
		.fui-icon-group.col-7 .fui-icon-col {
			width: 14.28%;
		}
		</style>
			<div class="popup-body">
			<div class="popup-bottom" style="border-radius:0.2rem;">
				<i class="closed icon icon-cuowu" ng-click="pagedata.showtostoretime=false;pagedata.getstorelist();"></i>
				<div class="fui-page-title" style="margin:0.5rem;text-align:left">选择上课时间！</div>
				<div class="fui-icon-group noborder col-7">
					<div class="fui-icon-col" ng-repeat="week in pagedata.work_weekarray" style="margin-top:0">
						<label class="jyui_cell_col" style="color:#ddd">
							<div class="timetitle"><span>{{week}}</span></div>
						</label>
					</div>
				</div>
				<div class="fui-icon-group noborder col-7">
					<div class="fui-icon-col" ng-repeat="item in pagedata.work_timedata" style="margin-top:0">
						<label class="jyui_cell_col" ng-click="pagedata.params.riqi=item.riqi;">
							<div ng-class="{'red':pagedata.params.riqi==item.riqi}"><span>{{item.day}}</span></div>
						</label>
					</div>
				</div>
				<div ng-if="pagedata.nowkey==0 || pagedata.params.riqi!=pagedata.nowriqi" class="fui-cellone">
					<div class="fui-cellone-label" style="color:#18bc9c">早</div>
					<div class="fui-cellone-info"></div>
					<div class="fui-cellone-remark noremark" style="color:#18bc9c">刷选早上有空的老师</div>
				</div>
				<div ng-if="pagedata.nowkey==0 || pagedata.params.riqi!=pagedata.nowriqi" class="fui-icon-group noborder col-6">
					<div class="fui-icon-col" ng-repeat="item in pagedata.work_hours0" style="margin-top:0">
						<label class="jyui_cell_col" ng-click="pagedata.settime(item.timev)">
							<div ng-class="{'btn btn-gray':1,'red':pagedata.params.timeids.indexOf(';'+item.timev+';')>=0}" style="background:#f2f2f2;margin: 0.1rem;line-height:2">{{item.timev}}</div>
						</label>
					</div>
				</div>
				<div ng-if="pagedata.nowkey<=1 || pagedata.params.riqi!=pagedata.nowriqi" class="fui-cellone">
					<div class="fui-cellone-label" style="color:#18bc9c">中</div>
					<div class="fui-cellone-info"></div>
					<div class="fui-cellone-remark noremark" style="color:#18bc9c">刷选中午有空的老师</div>
				</div>
				<div ng-if="pagedata.nowkey<=1 || pagedata.params.riqi!=pagedata.nowriqi" class="fui-icon-group noborder col-6">
					<div class="fui-icon-col" ng-repeat="item in pagedata.work_hours1" style="margin-top:0">
						<label class="jyui_cell_col" ng-click="pagedata.settime(item.timev)">
							<div ng-class="{'btn btn-gray':1,'red':pagedata.params.timeids.indexOf(';'+item.timev+';')>=0}" style="background:#f2f2f2;margin: 0.1rem;line-height:2">{{item.timev}}</div>
						</label>
					</div>
				</div>
				<div ng-if="pagedata.nowkey<=2 || pagedata.params.riqi!=pagedata.nowriqi" class="fui-cellone">
					<div class="fui-cellone-label" style="color:#18bc9c">晚</div>
					<div class="fui-cellone-info"></div>
					<div class="fui-cellone-remark noremark" style="color:#18bc9c">刷选晚上有空的老师</div>
				</div>
				<div ng-if="pagedata.nowkey<=2 || pagedata.params.riqi!=pagedata.nowriqi" class="fui-icon-group noborder col-6">
					<div class="fui-icon-col" ng-repeat="item in pagedata.work_hours2" style="margin-top:0">
						<label class="jyui_cell_col" ng-click="pagedata.settime(item.timev)">
							<div ng-class="{'btn btn-gray':1,'red':pagedata.params.timeids.indexOf(';'+item.timev+';')>=0}" style="background:#f2f2f2;margin: 0.1rem;line-height:2">{{item.timev}}</div>
						</label>
					</div>
				</div>
			</div>
			</div>
</div>
<script language='javascript'>
scope.pagedata.gotoshowstoretime=function(){
	scope.get('jy_qiuyuyue/index/get_work_time/',function(res){
		scope.pagedata.nowtime=res.nowtime;
		scope.pagedata.nowkey=res.nowkey;
		scope.pagedata.nowriqi=res.nowriqi;
		scope.pagedata.params.riqi=res.nowriqi;
		scope.pagedata.work_timedata=res.days;
		scope.pagedata.work_hours0=res.hours0;
		scope.pagedata.work_hours1=res.hours1;
		scope.pagedata.work_hours2=res.hours2;
		scope.pagedata.work_weekarray=res.weekarray;
		scope.pagedata.showtostoretime=true;
		scope.$evalAsync();
	});
}
scope.pagedata.settime=function(timev){
	console.log(timev);
	scope.duoxuans(timev,scope.pagedata.params,'timeids');
	scope.$evalAsync();
}
</script>